package experiment;

public class ExperimentOne {
    public static void main(String[] args) {
        //一维数组的创建与赋值和打印
        System.out.println("一维数组打印：");
        int[] array1 = {7, 9, 3, 8, 5};
        for (int i = 0; i < array1.length; i++) {
            int e = array1[i];
            System.out.println(e);
        }

        //二维数组的创建与赋值和打印
        System.out.println("二维数组打印：");
        int[][] array2 = {{3, 2, 6, 7}, {2, 0, 4, 6}};
        for (int i = 0; i < array2.length; i++) {
            for (int j = 0; j < array2[i].length; j++) {
                int ret = array2[i][j];
                System.out.println(ret);
            }
        }
//        System.out.println("java programming language");
    }
}
